// 数据配置
const datas = {
	preview_color: {
		title: "背景",
		type: "bg",
		tips: '原生小程序端不支持设置背景图片',
		value: {
			isColor: '1',
			color: "#ffffff",
			image: ""
		}
	},
	is_showIcon: {
		title: "图标是否显示",
		type: "switch",
		value: true,
	},
	icon_value: {
		title: "选择图标",
		type: "iconmodal",
		tips: '聚合APP不支持',
		showTerminal: 'h5', //控制显示终端 h5代表H5和小程序   cps代表原生聚合APP
		value: {
			isIcon: '1',
			image: "",
			icon: ""
		},
	},
	is_scroll: {
		title: "公告栏是否滚动",
		type: "switch",
		value: true,
	},
	scroll_speed: {
		title: "滚动速度",
		type: "bar",
		showBy: 'is_scroll',
		showTerminal: 'h5', //控制显示终端 h5代表H5和小程序   cps代表原生聚合APP
		tips: '滚动速率 (px/s)；聚合APP不支持',
		value: 20,
		min: 10,
		max: 200,
	},
	search_height: {
		title: "高度设置",
		type: "bar",
		tips: '选择公告栏滚动时原生小程序端不支持设置高度',
		value: 45,
		min: 35,
		max: 70,
	},
	search_title: {title: "公告内容", type: "text", value: "公告内容"},
	font_size: {
		title: "字体大小",
		type: "bar",
		value: 14,
		min: 12,
		max: 24,
	},
	text_style: {
		title: "文字样式",
		type: "textstylebox",
		value: []
	},
	font_color: {
		title: '文字颜色',
		type: 'color',
		value: '#666666',
	},
	notice_link: {
		title: "公告链接",
		type: "link",
		value: {is_h5: '1', link: '',gh_id: '',minApp_link:'',app_link:''},
	},
};

// 样式配置
const styles = {};

import template1 from './template1';

export const config = {
	datas,
	styles,
	layout: [
		template1
	]
};
